Alex Vandiver wrote:
>
> No -- you're missing the point. The version I wrote leaves a macro, b(),
> defined after a(foo) closes, which is dependant on what foo was at the time
> a(foo) was called.
Then how about this:
#macro a(foo)
#if (foo)
#declare Switch=1;
#else
#declare Switch=0;
#end
#end
#if(Switch)
#macro b()
// do one thing
#end
#else
#macro b()
// do another thing
#end
#end
--
Margus Ramst
Personal e-mail: mar### [at] peak edu ee
TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Post a reply to this message
|